import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: () => import(/* webpackChunkName: "about" */ '../views/Index.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "about" */ '../views/Login.vue')
  },
  // {
  //   path: '/fl',
  //   name: 'fl',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/flogin.vue')
  // },
  {
    path: '/uphouse',
    name: 'uphouse',
    component: () => import(/* webpackChunkName: "about" */ '../views/house/uphouse.vue')
  },
  {
    path: '/allhouse',
    name: 'allhouse',
    component: () => import(/* webpackChunkName: "about" */ '../views/house/allhouse.vue')
  },
  {
    path: '/housedetail',
    name: 'housedetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/house/housedetail.vue')
  },
  {
    path: '/post',
    name: 'post',
    component: () => import(/* webpackChunkName: "about" */ '../views/post/post.vue')
  },
  {
    path: '/mypost',
    name: 'mypost',
    component: () => import(/* webpackChunkName: "about" */ '../views/post/mypost.vue')
  },
  {
    path: '/uppost',
    name: 'uppost',
    component: () => import(/* webpackChunkName: "about" */ '../views/post/uppost.vue')
  },
  // {
  //   path: '/myfavorite',
  //   name: 'myfavorite',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/user/myfavorite.vue')
  // },
  {
    path: '/myhouse',
    name: 'myhouse',
    component: () => import(/* webpackChunkName: "about" */ '../views/user/myhouse.vue')
  },
  {
    path: '/myrent',
    name: 'myrent',
    component: () => import(/* webpackChunkName: "about" */ '../views/user/myrent.vue')
  },
  {
    path: '/evaluate',
    name: 'evaluate',
    component: () => import(/* webpackChunkName: "about" */ '../views/user/evaluate.vue')
  },
  {
    path: '/myroomie',
    name: 'myroomie',
    component: () => import(/* webpackChunkName: "about" */ '../views/user/myroomie.vue')
  },
  {
    path: '/userdetail',
    name: 'userdetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/user/userdetail.vue')
  },
  {
    path: '/personal',
    name: 'personal',
    component: () => import(/* webpackChunkName: "about" */ '../views/user/personal.vue')
  },
  {
    path: '/renting',
    name: 'renting',
    component: () => import(/* webpackChunkName: "about" */ '../views/renting.vue')
  },
  {
    path: '/Editmsg',
    name: 'Editmsg',
    component: () => import(/* webpackChunkName: "about" */ '../views/post/Editmsg.vue')
  },
  {
    path: '/personal',
    name: 'personal',
    component: () => import(/* webpackChunkName: "about" */ '../views/user/personal.vue')
  },
  {
    path: '/usercom',
    name: 'usercom',
    component: () => import(/* webpackChunkName: "about" */ '../views/user/usercom.vue')
  },
  {
    path: '/mynews',
    name: 'mynews',
    component: () => import(/* webpackChunkName: "about" */ '../views/user/mynews.vue')
  },
  {
    path: '/housecom',
    name: 'housecom',
    component: () => import(/* webpackChunkName: "about" */ '../views/house/housecom.vue')
  },
  {
    path: '/EditPersonInfo',
    name: 'EditPersonInfo',
    component: () => import(/* webpackChunkName: "about" */ '../views/user/EditPersonInfo.vue')
  },
  // {
  //   path: '/house',
  //   name: 'house',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/house/housef.vue')
  // },
  {
    path: '/rentdetail',
    name: 'rentdetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/house/rentdetail.vue')
  },
  {
    path: '/myrentdetail',
    name: 'myrentdetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/house/myrentdetail.vue')
  },
  {
    path: '/userhouse',
    name: 'userhouse',
    component: () => import(/* webpackChunkName: "about" */ '../views/house/userhouse.vue')
  },
  {
    path: '/userrent',
    name: 'userrent',
    component: () => import(/* webpackChunkName: "about" */ '../views/house/userrent.vue')
  },
  {
    path: '/PreRent',
    name: 'PreRent',
    component: () => import(/* webpackChunkName: "about" */ '../views/user/PreRent.vue')
  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // },
  {
    path: '/manager',
    name: 'manager',
    component: () => import(/* webpackChunkName: "about" */ '../views/manage/manager.vue')
  },
  {
    path: '/usermanage',
    name: 'usermanage',
    component: () => import(/* webpackChunkName: "about" */ '../views/manage/usermanage.vue')
  },
  {
    path: '/usercommanage',
    name: 'usercommanage',
    component: () => import(/* webpackChunkName: "about" */ '../views/manage/usercommanage.vue')
  },
  {
    path: '/housecommanage',
    name: 'housecommanage',
    component: () => import(/* webpackChunkName: "about" */ '../views/manage/housecommanage.vue')
  },
  {
    path: '/postmanage',
    name: 'postmanage',
    component: () => import(/* webpackChunkName: "about" */ '../views/manage/postmanage.vue')
  },
  {
    path: '/housemanage',
    name: 'housemanage',
    component: () => import(/* webpackChunkName: "about" */ '../views/manage/housemanage.vue')
  },
  {
    path: '/nodata',
    name: 'nodata',
    component: () => import(/* webpackChunkName: "about" */ '../components/nodata.vue')
  },

]

const router = new VueRouter({
  routes
})

export default router
